﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FXnaInfrastructure;

namespace GWModflow
{

    /// <summary>
    /// 用于表示modflow中的概念网格
    /// </summary>
    [Serializable]
    public class ModflowGrid
    {

        public ModflowGrid(FModflowGrid grid)
        {

            this._grid = grid;

            int nx = this._grid.NX - 1;
            int ny = this._grid.NY - 1;
            int nz = this._grid.NZ - 1;






            this._initialHead=new double[nx,ny,nz];

            this._ibound=new int[nx,ny,nz];


            _confiningBedElevation = new double[nx, ny,nz];




 
        }


        FModflowGrid _grid;

        /// <summary>
        /// 网格的物理性质模型,
        /// 需要注意这里的物理网格是以网格点数为中心，而不是网格单元数
        /// </summary>
        public FModflowGrid Grid
        {
            get { return _grid; }
          

        }






        double[, ,] _confiningBedElevation;

        public double[, ,] ConfiningBedElevation
        {
            get { return _confiningBedElevation; }
            set { _confiningBedElevation = value; }
        }



        double[, ,] _initialHead;

        public double[, ,] InitialHead
        {
            get { return _initialHead; }
            set { _initialHead = value; }
        }



        int[, ,] _ibound;

        public int[, ,] Ibound
        {
            get { return _ibound; }
            set { _ibound = value; }
        }







    }
}
